<!DOCTYPE html>
<html>
<head>
<title>书柜表</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
		   <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.key" @keyup.enter="query" placeholder="输入查询条件">
            </div>
            <a class="btn btn-primary" @click="query">查询</a>
            
			<#if shiro.hasPermission("bookshelfinfo:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("bookshelfinfo:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("bookshelfinfo:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">所在小区</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.area" placeholder="所在小区"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">所在地址</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.address" placeholder="所在地址"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">标准坐标系_经度</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.longitude" placeholder="标准坐标系_经度"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">标准坐标系_纬度</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.latitude" placeholder="标准坐标系_纬度"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">行数</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.rowCount" placeholder="行数"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">列数</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.colCount" placeholder="列数"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">是否报修:否(0);是(1);确认报修(2)</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.damageReport" placeholder="是否报修:否(0);是(1);确认报修(2)"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">是否可用:0-不可用;1-可用</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.available" placeholder="是否可用:0-不可用;1-可用"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.createTime" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">修改时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.modifyTime" placeholder="修改时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">火星坐标系_经度</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.gcj02Longitude" placeholder="火星坐标系_经度"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">火星坐标系_维度</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.gcj02Latitude" placeholder="火星坐标系_维度"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">百度坐标系_经度</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.bd09Longitude" placeholder="百度坐标系_经度"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">百度坐标系_维度</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.bd09Latitude" placeholder="百度坐标系_维度"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">所属区县</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.districtCode" placeholder="所属区县"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">附加信息</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.extraInfo" placeholder="附加信息"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">列装时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bookshelfInfo.initializeTime" placeholder="列装时间"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${request.contextPath}/statics/js/modules/generator/bookshelfinfo.js?_${.now?long}"></script>
</body>
</html>